package wafa.modelDocument;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class Document {

	private Content content = new Content();
	private List<Content> Attachments = new ArrayList<Content>();
	private Set<Index<?>> indexes = new HashSet<Index<?>>();
	private String DocumentId;

	public Content getContent() {
		return content;
	}

	public void setContent(Content content) {
		this.content = content;
	}

	public List<Content> getAttachments() {
		return Attachments;
	}

	public void setAttachments(List<Content> attachments) {
		Attachments = attachments;
	}

	public String getDocumentId() {
		return DocumentId;
	}

	public void setDocumentId(String documentId) {
		DocumentId = documentId;
	}

	public Set<Index<?>> getIndexes() {
		return indexes;
	}

	public void setIndexes(Set<Index<?>> indexes) {
		this.indexes = indexes;
	}

	public void addIndex(Index<?> index) {
		System.out.println("addd");
		indexes.add(index);
		System.out.println(" fin addd");
	}

	public void addAttachment(Content attachment) {
		this.Attachments.add(attachment);

	}

}
